OptOrderGateway
METADATA
| Attribute | Value |
|---|---|
| Topic | 5120-srse-gateway |
| MLink Token | Internal |
| Product | SRTrade |
| accessType | SELECT,UPDATE(spdrActionType),INSERT,DELETE |
| MLink Endpoint | MLink-Live |
Table Definition
| Field | Type | Key | Default Value | Comment |
|---|---|---|---|---|
| okey_at | enum - AssetType | PRI | 'EQT' | SR Option Key |
| okey_ts | enum - TickerSrc | PRI | 'NMS' | SR Option Key |
| okey_tk | VARCHAR(12) | PRI | '' | SR Option Key |
| okey_yr | SMALLINT UNSIGNED | PRI | 2000 | SR Option Key |
| okey_mn | TINYINT UNSIGNED | PRI | 1 | SR Option Key |
| okey_dy | TINYINT UNSIGNED | PRI | 1 | SR Option Key |
| okey_xx | DOUBLE | PRI | 0 | SR Option Key |
| okey_cp | enum - CallPut | PRI | 'Call' | SR Option Key |
| accnt | VARCHAR(16) | PRI | '' | SR Account default primary account associated with SRSE login |
| orderSide | enum - BuySell | PRI | 'None' | Parent Order Size |
| groupingCode | CHAR(19) | PRI | '0000-0000-0000-0000' | Parent Grouping Code |
| clientFirm | VARCHAR(16) | PRI | '' | |
| spdrActionType | enum - SpdrActionType | 'AddReplace' | Add new order AddReplace add or replace order Cancel cxl existing Replace update existing only Release modify order active size | |
| altOrderId | VARCHAR(24) | '' | Alternate client order ID This order ID will be copied to all execution reports | |
| altAutoHedgeId | VARCHAR(24) | '' | alternate order ID for child autohedge orders if any | |
| altAccnt | VARCHAR(32) | '' | alternate client assigned long account string optional used to map between client and SR account strings | |
| altUserName | VARCHAR(24) | '' | alternate client assigned user name optional used to map between client and SR account strings | |
| accntRouteCode | TINYTEXT | '' | accntRoute acronym | |
| execBrkrCode | VARCHAR(16) | '' | ||
| externExDest | VARCHAR(16) | '' | routing code for orders directed to an external order router default null should match FixRoutingTabledestination in SR accnt config | |
| externParams | TINYTEXT | '' | external algo namesparameters usually just an algo name | |
| strategy | VARCHAR(36) | '' | Client strategy string This value will appear on the SR Trade Monitor and in execution reports | |
| strategyAccnt | VARCHAR(16) | '' | SR strategy account option if exists will be validated | |
| visibleInSV | enum - YesNo | 'None' | allow order to be visible in SV do not use for high volume of orders | |
| orderDttm | DATETIME(6) | '1900-01-01 00:00:00.000000' | order entry time from clientif any | |
| orderSize | INT | -1 | parent order size contracts 1 no changeused when spdrActionTypeRelease | |
| orderActiveSize | INT | -1 | total activated size total size released for execution 1 all available size | |
| addCumFillQuantity | enum - YesNo | 'No' | If Yes then OrderSize is calculated order arrival as requested OrderSize existing CumFillQuantity | |
| exchMask | BIGINT | 0 | eligible exchanges 0 all | |
| maxExposureSize | INT | -1 | maximum simultaneous cumulative child order public size exposure 1 orderActiveSize order can overfill if orderActiveSize and numMakeExchanges 1 | |
| numMakeExchanges | TINYINT UNSIGNED | 1 | number of exchanges 1 4 on which to publish public making orders Effective number might be less than requested number if sufficient exchanges are not available | |
| publicSize | enum - PublicSizeHandling | 'None' | public order size handling Noneuse default size handling usually limits public size to typical market size Randomizerandomize public size MktSizeexpose only typical market size FullSizeexpose entire order size where possible | |
| randomizeSize | enum - YesNo | 'Yes' | randomize public order size | |
| canOverlapCxlRepl | enum - YesNo | 'No' | can execution engines overlap cancelreplace operations order can overfill if YES at most one active overlapping cxlreplace operation for each parent order | |
| progressRule | enum - ProgressRule | 'None' | None all size immediately availableTWAP size released in time intervalsVWAP size released in volume intervals | |
| progressCatchUpRule | enum - ProgressCatchUpRule | 'None' | latearrival catchup handling None Immediate | |
| twapSliceCnt | TINYINT UNSIGNED | 0 | ProgressSliceCnt number of progress slices to use if none given will compute based on active size and duration max 20 | |
| progressExposeTime | INT | 0 | minimum time secs to expose order 0 no minimum used to guarantee that the order is exposed at midmarket for some time before actively taking | |
| auctionResponder | enum - AuctionResponder | 'None' | if set parent order can be an auction responder | |
| maxMakeExchFee | FLOAT | 0 | maximum making exchange fee in point value zero no limit use nonzero number for limit to apply | |
| maxTakeExchFee | FLOAT | 0 | maximum taking exchange fee in point value zero no limit use nonzero number for limit to apply | |
| incTakeExchFee | enum - IncExchFee | 'None' | include exchange fee in probability and surface based take limit calculations | |
| incMakeExchFee | enum - IncExchFee | 'None' | include exchange fee in probability and surface based make limit calculations | |
| makeExchRule | enum - MakeExchRule | 'None' | ActiveMaker exchange preference rule MaxPart will pick exchanges to maximize participation FeeOrder will pick exchanges to minimize fees maximize rebates ImprvOnly will only make when improving NBBO | |
| triggerType | enum - TriggerType | 'None' | type of trigger PrintVolSurfVol only for options print print or actionable quote | |
| triggerLevel | FLOAT | 0 | stoptrigger price for parent order to go active | |
| cxlUPrcRange | enum - UPrcCxl | 'None' | cancel parent order ifwhen outside minmax uPrc range Halt also cancel if the securityunderlier has been halted | |
| minUBid | FLOAT | 0 | optional | |
| maxUAsk | FLOAT | 0 | optional 001 none | |
| minMaxType | enum - MinMaxType | 'Prc' | if Prc minUBidmaxUAsk are expressed as prices if Pct then they are expresses as pct change since parent order arrival | |
| minOptionPx | FLOAT | 0 | optional option price floor for tied to stock orders | |
| maxChildOrders | INT | 1000 | maximum number of child orders that can be generated by this parent order order will terminate ifwhen this cap is reachedzero or neg unlimited | |
| spdrStageType | enum - SpdrStageType | 'None' | SizeLock stage pending modification can reduce size SizeModify stage pending modification can increasereduce size | |
| marketSession | enum - MarketSession | 'RegMkt' | ||
| startDttm | DATETIME(6) | '2000-01-01' | optional parent order start time | |
| orderDuration | INT | -1 | optional number of seconds | |
| activeDuration | INT | -1 | optional number of seconds | |
| goodTillDttm | DATETIME(6) | '2000-01-01' | optional default 20000101 | |
| startType | enum - StartType | 'None' | WaitTrigger | |
| parentOrderHandling | enum - ParentOrderHandling | 'ActiveTaker' | ||
| parentBalanceHandling | enum - ParentBalanceHandling | 'PostLimit' | ||
| atsAuctionEngage | enum - AtsAuctionEngage | 'None' | perorder optout of SR ATS auctions Noneinherit account algoFlashalgoBlockPct Disabledo not algoinitiate flashblock AND do not respond to SR flash auctions | |
| atsVisibility | enum - AtsVisibility | 'None' | for BlockAuction orders visibility to responders is neither side only or side price | |
| includeSRNetwork | enum - InclExclDisclose | 'None' | ||
| noticeNumber | CHAR(19) | '0000-0000-0000-0000' | required when parentOrderHandling AtsResponse | |
| respSide | enum - BuySell | 'None' | ||
| orderLimitType | enum - SpdrLimitType | 'Market' | Various Prc PrcDe Vol Rel Market establishes the primary LimitPrice for a parent order | |
| takeLimitClass | enum - SpdrLimitClass | 'Simple' | Simple LimitPrice Surface BESTLimitPrice SurfLimit Probability BESTLimitPrice ProbLimit | |
| makeLimitClass | enum - SpdrLimitClass | 'Simple' | Simple LimitPrice Surface BESTLimitPrice SurfLimit Probability BESTLimitPrice ProbLimit | |
| takeReachRule | enum - ReachRule | 'None' | None reach room immediately available Delayed available after 13 seconds Passive available if contra side aggresses WeakOnly only take if available size avgMarketSize ISOSweep Intermarket Sweep requires WaitTrigger | |
| orderPrcLimit | DOUBLE | 0 | Applies if LimitType Prc | |
| orderRefUPrc | DOUBLE | 0 | defaultunderliermid | |
| orderRefDelta | FLOAT | -99 | defaultoptiondelta | |
| orderRefGamma | FLOAT | -99 | defaultoptiongamma | |
| orderVolLimit | FLOAT | 0 | Applies if LimitType Vol uses SR dividends and borrow rates | |
| rateOverride | FLOAT | -1 | zero ignore zero override | |
| sdivOverride | FLOAT | -1 | Default 0 | |
| ddivOverride | TEXT | '' | Discrete dividend string override yearsToExpirydivYearsdivAmountdivYearsdivAmount | |
| overrideCode | enum - OverrideCode | 'None' | override default SR dividend and rate details only used if LimitType Vol | |
| orderPrcOffset | DOUBLE | 0 | default0 | |
| orderRefEventMult | FLOAT | 0 | ||
| orderRefEventDttm | DATETIME(6) | '1900-01-01 00:00:00.000000' | ||
| takeAlphaType | enum - AlphaType | 'None' | Applies if takeLimitClass Probability | |
| makeAlphaType | enum - AlphaType | 'None' | Applies if makeLimitClass Probability | |
| takeAlphaFactor | FLOAT | 0 | 22 takeProbLimit MAXtakeProbability takeProbAvg takeAlphaFactor takeProbStd if takeAlphaType Relative | |
| makeAlphaFactor | FLOAT | 0 | 22 makeProbLimit MAXmakeProbability makeProbAvg makeAlphaFactor makeProbStd if makeAlphaType Relative | |
| takeProbability | FLOAT | 0 | takeProbLimit takeProbability if takeAlphaType Static | |
| makeProbability | FLOAT | 0 | makeProbLimit makeProbability if makeAlphaType Static | |
| takeSurfPrcOffset | DOUBLE | 0 | default0 | |
| takeSurfVolOffset | FLOAT | 0 | default0 | |
| takeSurfWidthOffset | FLOAT | 0 | 1x to 1x 10 05 avgMktWidth 10 05 avgMktWidth | |
| makeSurfPrcOffset | DOUBLE | 0 | default0 | |
| makeSurfVolOffset | FLOAT | 0 | default0 | |
| makeSurfWidthOffset | FLOAT | 0 | 1x to 1x 10 05 avgMktWidth 10 05 avgMktWidth | |
| autoHedge | enum - AutoHedge | 'None' | ||
| hedgeInstrument | enum - HedgeInstOrig | 'Default' | Defaultunderlier EQT or FUT Index Options use ETF FrontMonthunderlier EQT or front month FUT Index Options use FM Fut StockhedgeSecKey FuturehedgeSecKey DirectStock DirectFuture and FutUnderlier are depricated | |
| hedgeFKey_at | enum - AssetType | 'EQT' | autohedge instrument can be a TickerKey stock or ExpiryKey future required for Stock and Future | |
| hedgeFKey_ts | enum - TickerSrc | 'NMS' | autohedge instrument can be a TickerKey stock or ExpiryKey future required for Stock and Future | |
| hedgeFKey_tk | VARCHAR(12) | '' | autohedge instrument can be a TickerKey stock or ExpiryKey future required for Stock and Future | |
| hedgeFKey_yr | SMALLINT UNSIGNED | 1900 | autohedge instrument can be a TickerKey stock or ExpiryKey future required for Stock and Future | |
| hedgeFKey_mn | TINYINT UNSIGNED | 1 | autohedge instrument can be a TickerKey stock or ExpiryKey future required for Stock and Future | |
| hedgeFKey_dy | TINYINT UNSIGNED | 1 | autohedge instrument can be a TickerKey stock or ExpiryKey future required for Stock and Future | |
| hedgeBetaRatio | FLOAT | 1.0 | portion of executed delta to autohedge can be 10 Beta for beta hedging 40 to 40 | |
| hedgeScope | enum - HedgeScope | 'RiskGroup' | ||
| hedgeSession | enum - MarketSession | 'RegMkt' | ||
| hedgeFillUMarkLmtPrc | enum - YesNo | 'No' | set a price limit on the autohedge order based on the most recent option fillUMark | |
| positionType | enum - PositionType | 'Auto' | ||
| ssaleFlag | enum - ShortSaleFlag | 'Auto' | Used to determine stock autohedge flags | |
| firmType | enum - FirmType | 'None' | Used to override firmType in account config Default None use SpiderRock account configuration | |
| theoVol | FLOAT | 0 | client supplied theoretical volatility used for markup only | |
| riskGroupId | CHAR(19) | '0000-0000-0000-0000' | All group grp risk limits below are relative to this riskGroupId Default 0 none Required to be nonzero if autoHedge is something other than None | |
| reqAuxRiskGroupCtrl | enum - YesNo | 'None' | ||
| refRMetric1Src | enum - RMetricSource | 'None' | ||
| refRMetric2Src | enum - RMetricSource | 'None' | ||
| refRMetric3Src | enum - RMetricSource | 'None' | ||
| refRMetric4Src | enum - RMetricSource | 'None' | ||
| refRMetric5Src | enum - RMetricSource | 'None' | ||
| refRMetric6Src | enum - RMetricSource | 'None' | ||
| refRMetric7Src | enum - RMetricSource | 'None' | ||
| orderRefRMetric1 | FLOAT | 0 | user supplied RMetric1 value used in RiskGroupID risk controls netRMetric1 sumfillQty orderRefRMetric1 underlierPerCn | |
| orderRefRMetric2 | FLOAT | 0 | user supplied RMetric2 value used in RiskGroupID risk controls netRMetric2 sumfillQty orderRefRMetric2 underlierPerCn | |
| orderRefRMetric3 | FLOAT | 0 | user supplied RMetric3 value used in RiskGroupID risk controls netRMetric3 sumfillQty orderRefRMetric3 underlierPerCn | |
| orderRefRMetric4 | FLOAT | 0 | user supplied RMetric4 value used in RiskGroupID risk controls netRMetric4 sumfillQty orderRefRMetric4 underlierPerCn | |
| orderRefRMetric5 | FLOAT | 0 | user supplied RMetric5 value used in RiskGroupID risk controls netRMetric5 sumfillQty orderRefRMetric5 underlierPerCn | |
| orderRefRMetric6 | FLOAT | 0 | user supplied RMetric6 value used in ExpDay risk controls netRMetric6 sumfillQty orderRefRMetric6 underlierPerCn | |
| orderRefRMetric7 | FLOAT | 0 | user supplied RMetric7 value used in SymDay risk controls netRMetric7 sumfillQty orderRefRMetric7 underlierPerCn | |
| expDayWtVegaOffset | FLOAT | 0 | max acctsymbol day wtVega offset target | |
| maxExpDayWtVegaLn | FLOAT | -1 | max accntexpiration day time weighted vega long positive number1no limitrisk limit max limit current net counter offset | |
| maxExpDayWtVegaSh | FLOAT | -1 | max accntexpiration day time weighted vega short positive number1no limitrisk limit max limit current net counter offset | |
| maxExpDayRMetric6Ln | FLOAT | -1 | max acctexpiration day rMetric6 long positive number1no limitrisk limit max limit current net counter | |
| maxExpDayRMetric6Sh | FLOAT | -1 | max acctexpiration day rMetric6 short positive number1no limitrisk limit max limit current net counter | |
| symDayDDeltaOffset | FLOAT | 0 | max acctsymbol day delta offset target | |
| maxSymDayDDeltaLn | FLOAT | -1 | max acctsymbol day delta long positive number1no limitrisk limit max limit current net counter offset | |
| maxSymDayDDeltaSh | FLOAT | -1 | max acctsymbol day delta short positive number1no limitrisk limit max limit current net counter offset | |
| symDayVegaOffset | FLOAT | 0 | max acctsymbol day vega offset target | |
| maxSymDayVegaLn | FLOAT | -1 | max acctsymbol day vega long positive number1no limitrisk limit max limit current net counter offset | |
| maxSymDayVegaSh | FLOAT | -1 | max acctsymbol day vega short positive number1no limitrisk limit max limit current net counter offset | |
| symDayWtVegaOffset | FLOAT | 0 | max acctsymbol day wtVega offset target | |
| maxSymDayWtVegaLn | FLOAT | -1 | max acctsymbol day time weighted vega long positive number1no limitrisk limit max limit current net counter offset | |
| maxSymDayWtVegaSh | FLOAT | -1 | max acctsymbol day time weighted vega short positive number1no limitrisk limit max limit current net counter offset | |
| maxSymDayRMetric7Ln | FLOAT | -1 | max acctsymbol day rMetric7 long positive number1no limitrisk limit max limit current net counter | |
| maxSymDayRMetric7Sh | FLOAT | -1 | max acctsymbol day rMetric7 short positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayDDeltaLn | FLOAT | -1 | max acctriskGroup day delta long positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayDDeltaSh | FLOAT | -1 | max acctriskGroup day delta short positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayVegaLn | FLOAT | -1 | max acctriskGroup day vega long positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayVegaSh | FLOAT | -1 | max acctriskGroup day vega short positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayVegaAbs | FLOAT | -1 | max acctriskGroup day vega abs positive number1no limitrisk limit max limit abscurrent net counter | |
| grpDayVegaRatio | FLOAT | 1.0 | target bot sld ratio eg ratio20 means that neutral is bot vega 2x sld vega | |
| maxAccDayWtVegaLn | FLOAT | -1 | max accnt day time weighted vega long positive number1no limitrisk limit max limit current net counter offset | |
| maxAccDayWtVegaSh | FLOAT | -1 | max accnt day time weighted vega short positive number1no limitrisk limit max limit current net counter offset | |
| accDayWtVegaOffset | FLOAT | 0 | accnt day time weighted vega offset target position | |
| maxAccDayDDeltaLn | FLOAT | -1 | max accnt day delta long positive number1no limitrisk limit max limit current net counter offset | |
| maxAccDayDDeltaSh | FLOAT | -1 | max accnt day delta short positive number1no limitrisk limit max limit current net counter offset | |
| accDayDDeltaOffset | FLOAT | 0 | accnt day delta offset target position | |
| maxGrpDayContractsLn | INT | -1 | max acctriskGroup day opt contracts long positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayContractsSh | INT | -1 | max acctriskGroup day opt contracts short positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayContractsAbs | INT | -1 | max acctriskGroup day opt contracts abs positive number1no limitrisk limit max limit abscurrent net counter | |
| maxGrpDayFutContractsLn | INT | -1 | max acctriskGroup day fut contracts long positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayFutContractsSh | INT | -1 | max acctriskGroup day fut contracts short positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayFutContractsAbs | INT | -1 | max acctriskGroup day fut contracts abs positive number1no limitrisk limit max limit abscurrent net counter | |
| maxGrpDayRMetric1Ln | FLOAT | -1 | max acctriskGroup day rMetric1 long positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayRMetric1Sh | FLOAT | -1 | max acctriskGroup day rMetric1 short positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayRMetric1Abs | FLOAT | -1 | max acctriskGroup day rMetric1 abs positive number1no limitrisk limit max limit abscurrent net counter | |
| grpDayRMetric1Ratio | FLOAT | 1.0 | target bot sld ratio eg ratio05 means that neutral is bot rMetric1 05x sld rMetric1 | |
| maxGrpDayRMetric2Ln | FLOAT | -1 | max acctriskGroup day rMetric2 long positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayRMetric2Sh | FLOAT | -1 | max acctriskGroup day rMetric2 short positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayRMetric3Ln | FLOAT | -1 | max acctriskGroup day rMetric3 long positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayRMetric3Sh | FLOAT | -1 | max acctriskGroup day rMetric3 short positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayRMetric4Ln | FLOAT | -1 | max acctriskGroup day rMetric4 long positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayRMetric4Sh | FLOAT | -1 | max acctriskGroup day rMetric4 short positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayRMetric5Ln | FLOAT | -1 | max acctriskGroup day rMetric5 long positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayRMetric5Sh | FLOAT | -1 | max acctriskGroup day rMetric5 short positive number1no limitrisk limit max limit current net counter | |
| symEmaCxlDDeltaLn | FLOAT | -1 | max acctsymbol 60s EMA delta long positive number 0 is no limit will immediately cxl all option orders in a symbol if any order in the symbol breaches | |
| symEmaCxlDDeltaSh | FLOAT | -1 | max acctsymbol 60s EMA delta short positive number 0 is no limit | |
| symEmaCxlWtVegaLn | FLOAT | -1 | max acctsymbol 60s EMA wtVega long positive number 0 is no limit will immediately cxl all option orders in a symbol if any order in the symbol breaches | |
| symEmaCxlWtVegaSh | FLOAT | -1 | max acctsymbol 60s EMA wtVega short positive number 0 is no limit | |
| traderName | VARCHAR(32) | '' | Name of the trader associated with the order | |
| userData1 | TINYTEXT | '' | client supplied data field passes through to parent and child executions and reports as well as FIX drops | |
| userData2 | TINYTEXT | '' | client supplied data field passes through to parent and child executions and reports as well as FIX drops | |
| childData | TINYTEXT | '' | client supplied data field passes through to down stream child orders | |
| checksum | TINYINT UNSIGNED | 0 | Must be set to 13 This helps detect some columnvalue misalignments | |
| tradingPeriod | enum - TradingPeriod | 'None' | period for tradedate derivation publisherstamped default None | |
| tradeDate | DATE | '1900-01-01' | frozen trade date publisherstamped default 0 | |
| altLimitType | enum - AltLimitType | 'None' | None no alt limit Prc static price Vol live vol options only Theo live client theo surface vol options only account primary theoModel | |
| altPrcLimit | DOUBLE | 0 | Applies if altLimitType Prc | |
| altVolLimit | FLOAT | 0 | Applies if altLimitType Vol repriced live at the underlier reference | |
| altVolOffset | FLOAT | 0 | Applies if altLimitType Theo toward the market like the surface offsets Buy theo vol offset Sell theo vol offset negative tightens both sides | |
| altPrcOffset | DOUBLE | 0 | Applies if altLimitType Theo toward the market Buy price offset Sell price offset after altVolOffset | |
| altLimitURef | enum - AltLimitURef | 'Cross' | underlier reference for VolTheo pricing Cross default hedge side Buy call Sell put uBid Buy put Sell call uAsk Mid NBBO mid | |
| DirectedCounterPartyList | JSON | 'JSON_ARRAY()' |
PRIMARY KEY DEFINITION (Unique)
| Field | Sequence |
|---|---|
| okey_tk | 1 |
| okey_yr | 2 |
| okey_mn | 3 |
| okey_dy | 4 |
| okey_xx | 5 |
| okey_cp | 6 |
| okey_at | 7 |
| okey_ts | 8 |
| accnt | 9 |
| orderSide | 10 |
| groupingCode | 11 |
| clientFirm | 12 |
JSON Block (DirectedCounterPartyList)
| Field | Type | Comment |
|---|---|---|
| clientFirm | enum - clientFirm | |
| inclExcl | enum - InclExclDisclose |
SELECT TABLE EXAMPLE QUERY
SELECT *
FROM `SRTrade`.`MsgOptOrderGateway`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE','CRDT','GCR','SWAP','ENT','MBS','SET','LOAN') */
`okey_at` = 'NONE'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX','CRCY','CMDY','DTI','SOVN','SR_US','SR_EU','SR_AP','SR_UK','USD','EUR','GBP','CHF','JPY','CAD','AUD','HKD','KRW','INR','SGD','TWD','CNY','CNH','BRL','MXN','ZAR','SEK','NOK','DKK','PLN','ILS','TRY','NZD','THB','MYR','IDR','PHP','CZK','HUF','SAR','AED','CLP','COP') */
`okey_ts` = 'NONE'
AND
/* Replace with a VARCHAR(12) */
`okey_tk` = 'Example_okey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`okey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`okey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`okey_dy` = 1
AND
/* Replace with a DOUBLE */
`okey_xx` = 4.56
AND
/* Replace with a ENUM('Call','Put','Pair') */
`okey_cp` = 'CALL'
AND
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a ENUM('None','Buy','Sell') */
`orderSide` = 'NONE'
AND
/* Replace with a CHAR(19) */
`groupingCode` = 'Example_groupingCode'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';
INSERT TABLE EXAMPLE QUERY
INSERT INTO `SRTrade`.`MsgOptOrderGateway`(
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE','CRDT','GCR','SWAP','ENT','MBS','SET','LOAN') */
`okey_at`,
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX','CRCY','CMDY','DTI','SOVN','SR_US','SR_EU','SR_AP','SR_UK','USD','EUR','GBP','CHF','JPY','CAD','AUD','HKD','KRW','INR','SGD','TWD','CNY','CNH','BRL','MXN','ZAR','SEK','NOK','DKK','PLN','ILS','TRY','NZD','THB','MYR','IDR','PHP','CZK','HUF','SAR','AED','CLP','COP') */
`okey_ts`,
/* Replace with a VARCHAR(12) */
`okey_tk`,
/* Replace with a SMALLINT UNSIGNED */
`okey_yr`,
/* Replace with a TINYINT UNSIGNED */
`okey_mn`,
/* Replace with a TINYINT UNSIGNED */
`okey_dy`,
/* Replace with a DOUBLE */
`okey_xx`,
/* Replace with a ENUM('Call','Put','Pair') */
`okey_cp`,
/* Replace with a VARCHAR(16) */
`accnt`,
/* Replace with a ENUM('None','Buy','Sell') */
`orderSide`,
/* Replace with a CHAR(19) */
`groupingCode`,
/* Replace with a VARCHAR(16) */
`clientFirm`,
/* Replace with a ENUM('Add','AddReplace','Replace','Cancel','Modify') */
`spdrActionType`,
/* Replace with a VARCHAR(24) */
`altOrderId`,
/* Replace with a VARCHAR(24) */
`altAutoHedgeId`,
/* Replace with a VARCHAR(32) */
`altAccnt`,
/* Replace with a VARCHAR(24) */
`altUserName`,
/* Replace with a TINYTEXT */
`accntRouteCode`,
/* Replace with a VARCHAR(16) */
`execBrkrCode`,
/* Replace with a VARCHAR(16) */
`externExDest`,
/* Replace with a TINYTEXT */
`externParams`,
/* Replace with a VARCHAR(36) */
`strategy`,
/* Replace with a VARCHAR(16) */
`strategyAccnt`,
/* Replace with a ENUM('None','Yes','No') */
`visibleInSV`,
/* Replace with a DATETIME(6) */
`orderDttm`,
/* Replace with a INT */
`orderSize`,
/* Replace with a INT */
`orderActiveSize`,
/* Replace with a ENUM('Yes','No') */
`addCumFillQuantity`,
/* Replace with a BIGINT */
`exchMask`,
/* Replace with a INT */
`maxExposureSize`,
/* Replace with a TINYINT UNSIGNED */
`numMakeExchanges`,
/* Replace with a ENUM('None','Randomize','MktSize','FullSize','MktSizeA','MktSizeB','MktSizeC','FullSizeR') */
`publicSize`,
/* Replace with a ENUM('Yes','No') */
`randomizeSize`,
/* Replace with a ENUM('Yes','No') */
`canOverlapCxlRepl`,
/* Replace with a ENUM('None','Twap','Vwap','TwapReset','VwapReset','FastReset','SlowReset','TwapAlpha','VwapAlpha','TwapAlphaC','VwapAlphaC','AutoComplete','AllowImmediate','Manual','SpdrPulse','IOC','FlashMakeTake','QisTwap') */
`progressRule`,
/* Replace with a ENUM('None','Immediate','Distribute') */
`progressCatchUpRule`,
/* Replace with a TINYINT UNSIGNED */
`twapSliceCnt`,
/* Replace with a INT */
`progressExposeTime`,
/* Replace with a ENUM('None','Any','Disable') */
`auctionResponder`,
/* Replace with a FLOAT */
`maxMakeExchFee`,
/* Replace with a FLOAT */
`maxTakeExchFee`,
/* Replace with a ENUM('None','ExclFee','IncFee') */
`incTakeExchFee`,
/* Replace with a ENUM('None','ExclFee','IncFee') */
`incMakeExchFee`,
/* Replace with a ENUM('None','MaxPart','FeeOptimal','ImprvOnly','FeeStrict','RoundRobin','ProRataOptim') */
`makeExchRule`,
/* Replace with a ENUM('None','PrintPrc','PrintVol','SurfVol','PrtSurfVol') */
`triggerType`,
/* Replace with a FLOAT */
`triggerLevel`,
/* Replace with a ENUM('None','Yes','No','YesHalt','NoHalt') */
`cxlUPrcRange`,
/* Replace with a FLOAT */
`minUBid`,
/* Replace with a FLOAT */
`maxUAsk`,
/* Replace with a ENUM('None','Prc','Pct') */
`minMaxType`,
/* Replace with a FLOAT */
`minOptionPx`,
/* Replace with a INT */
`maxChildOrders`,
/* Replace with a ENUM('None','ModifyAny','ModifyAlgo') */
`spdrStageType`,
/* Replace with a ENUM('None','PreMkt','RegMkt','PostMkt','PreRegMkt','RegPostMkt','AllDay') */
`marketSession`,
/* Replace with a DATETIME(6) */
`startDttm`,
/* Replace with a INT */
`orderDuration`,
/* Replace with a INT */
`activeDuration`,
/* Replace with a DATETIME(6) */
`goodTillDttm`,
/* Replace with a ENUM('None','WaitTrigger') */
`startType`,
/* Replace with a ENUM('None','ActiveTaker','PostOnly','DMA','MktOnOpn','MktOnCls','RFQRequest','AwayAlgo','ExchPing','BlockAuction','FlashAuction','AtsResponse','SweepTake','TestParent') */
`parentOrderHandling`,
/* Replace with a ENUM('None','PostWith','PostTurn','PostImprove','PostLimit','MaxIntern','PostWthF','PostImprvR','PostFlash','PostFlashW','PostPeg','PostFlashI') */
`parentBalanceHandling`,
/* Replace with a ENUM('None','Disable','Flash','Block','Both') */
`atsAuctionEngage`,
/* Replace with a ENUM('None','Neither','Side','SidePrice') */
`atsVisibility`,
/* Replace with a ENUM('None','Include','Exclude','Disclose') */
`includeSRNetwork`,
/* Replace with a CHAR(19) */
`noticeNumber`,
/* Replace with a ENUM('None','Buy','Sell') */
`respSide`,
/* Replace with a ENUM('None','Market','MarketArrival','Prc','PrcDe','PrcDeX','PrcDeT','PrcDeP','PrcDeXT','PrcDeXP','Vol','VolX','PrcV','PrcVX','NoLimit','RelMid','RelJoin','RelCross','SmrtFast','SmrtNorm','RelTurn','PrcDeEm','VolEm','Aux','UPrcPct','PkgNeutral','RcPrem','SynthLimitMM','SynthLimitBW','SynthLimitWW','UPrcPctStrike','PrcDeInit','AtsRevCon') */
`orderLimitType`,
/* Replace with a ENUM('Simple','Surface','Probability','SurfProb') */
`takeLimitClass`,
/* Replace with a ENUM('Simple','Surface','Probability','SurfProb') */
`makeLimitClass`,
/* Replace with a ENUM('None','Delayed','Passive','WeakOnly','RespondOnly','FullSize','ISOSweep','AllOrNone','QtyOrMore','UpToQty','AtMost25','AtMost50','MinTakeFee','BalanceOrNone','Pct2p5','Pct10','Pct25') */
`takeReachRule`,
/* Replace with a DOUBLE */
`orderPrcLimit`,
/* Replace with a DOUBLE */
`orderRefUPrc`,
/* Replace with a FLOAT */
`orderRefDelta`,
/* Replace with a FLOAT */
`orderRefGamma`,
/* Replace with a FLOAT */
`orderVolLimit`,
/* Replace with a FLOAT */
`rateOverride`,
/* Replace with a FLOAT */
`sdivOverride`,
/* Replace with a TEXT */
`ddivOverride`,
/* Replace with a ENUM('None','SDivOnly','DDivOnly','Both') */
`overrideCode`,
/* Replace with a DOUBLE */
`orderPrcOffset`,
/* Replace with a FLOAT */
`orderRefEventMult`,
/* Replace with a DATETIME(6) */
`orderRefEventDttm`,
/* Replace with a ENUM('None','Static','Eagle','Hawk','Falcon','Relative') */
`takeAlphaType`,
/* Replace with a ENUM('None','Static','Eagle','Hawk','Falcon','Relative') */
`makeAlphaType`,
/* Replace with a FLOAT */
`takeAlphaFactor`,
/* Replace with a FLOAT */
`makeAlphaFactor`,
/* Replace with a FLOAT */
`takeProbability`,
/* Replace with a FLOAT */
`makeProbability`,
/* Replace with a DOUBLE */
`takeSurfPrcOffset`,
/* Replace with a FLOAT */
`takeSurfVolOffset`,
/* Replace with a FLOAT */
`takeSurfWidthOffset`,
/* Replace with a DOUBLE */
`makeSurfPrcOffset`,
/* Replace with a FLOAT */
`makeSurfVolOffset`,
/* Replace with a FLOAT */
`makeSurfWidthOffset`,
/* Replace with a ENUM('None','Static','AutoMid','AutoCrx','AutoTrn','SpdrAuto','Spdr10S','Spdr30S','Spdr90S','Spdr5M','Spdr30M','SpdrDay','SmartFast','SmartNorm','FastCrx','FastDark','SlowDark','AlphaVwap1pct','AlphaVwap2pct','AlphaVwap5pct','AlphaVwap25pct','Custom','AwayAlgo','EuMsAlgo','Policy') */
`autoHedge`,
/* Replace with a ENUM('None','Default','FrontMonth','FutUnderlier','Stock','Future','DirectStock','DirectFuture') */
`hedgeInstrument`,
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE','CRDT','GCR','SWAP','ENT','MBS','SET','LOAN') */
`hedgeFKey_at`,
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX','CRCY','CMDY','DTI','SOVN','SR_US','SR_EU','SR_AP','SR_UK','USD','EUR','GBP','CHF','JPY','CAD','AUD','HKD','KRW','INR','SGD','TWD','CNY','CNH','BRL','MXN','ZAR','SEK','NOK','DKK','PLN','ILS','TRY','NZD','THB','MYR','IDR','PHP','CZK','HUF','SAR','AED','CLP','COP') */
`hedgeFKey_ts`,
/* Replace with a VARCHAR(12) */
`hedgeFKey_tk`,
/* Replace with a SMALLINT UNSIGNED */
`hedgeFKey_yr`,
/* Replace with a TINYINT UNSIGNED */
`hedgeFKey_mn`,
/* Replace with a TINYINT UNSIGNED */
`hedgeFKey_dy`,
/* Replace with a FLOAT */
`hedgeBetaRatio`,
/* Replace with a ENUM('None','Accnt','RiskGroup') */
`hedgeScope`,
/* Replace with a ENUM('None','PreMkt','RegMkt','PostMkt','PreRegMkt','RegPostMkt','AllDay') */
`hedgeSession`,
/* Replace with a ENUM('None','Yes','No') */
`hedgeFillUMarkLmtPrc`,
/* Replace with a ENUM('Opening','Closing','Auto') */
`positionType`,
/* Replace with a ENUM('None','Long','Short','Exempt','Cover','Auto','NA') */
`ssaleFlag`,
/* Replace with a ENUM('None','Customer','Firm','MarketMaker','ProCustomer','BrokerDealer','AwayMM','FirmJBO','BrkrDlrCust') */
`firmType`,
/* Replace with a FLOAT */
`theoVol`,
/* Replace with a CHAR(19) */
`riskGroupId`,
/* Replace with a ENUM('None','Yes','No') */
`reqAuxRiskGroupCtrl`,
/* Replace with a ENUM('None','User','Vega','WVega','WTVega','TVega','Theta','Gamma','DGamma','DDeltaIvS','BDDelta','OptDDelta','Premium','Notional','Quantity','StrictPremium','DVanna','UserCap','DDeltaIvSsr') */
`refRMetric1Src`,
/* Replace with a ENUM('None','User','Vega','WVega','WTVega','TVega','Theta','Gamma','DGamma','DDeltaIvS','BDDelta','OptDDelta','Premium','Notional','Quantity','StrictPremium','DVanna','UserCap','DDeltaIvSsr') */
`refRMetric2Src`,
/* Replace with a ENUM('None','User','Vega','WVega','WTVega','TVega','Theta','Gamma','DGamma','DDeltaIvS','BDDelta','OptDDelta','Premium','Notional','Quantity','StrictPremium','DVanna','UserCap','DDeltaIvSsr') */
`refRMetric3Src`,
/* Replace with a ENUM('None','User','Vega','WVega','WTVega','TVega','Theta','Gamma','DGamma','DDeltaIvS','BDDelta','OptDDelta','Premium','Notional','Quantity','StrictPremium','DVanna','UserCap','DDeltaIvSsr') */
`refRMetric4Src`,
/* Replace with a ENUM('None','User','Vega','WVega','WTVega','TVega','Theta','Gamma','DGamma','DDeltaIvS','BDDelta','OptDDelta','Premium','Notional','Quantity','StrictPremium','DVanna','UserCap','DDeltaIvSsr') */
`refRMetric5Src`,
/* Replace with a ENUM('None','User','Vega','WVega','WTVega','TVega','Theta','Gamma','DGamma','DDeltaIvS','BDDelta','OptDDelta','Premium','Notional','Quantity','StrictPremium','DVanna','UserCap','DDeltaIvSsr') */
`refRMetric6Src`,
/* Replace with a ENUM('None','User','Vega','WVega','WTVega','TVega','Theta','Gamma','DGamma','DDeltaIvS','BDDelta','OptDDelta','Premium','Notional','Quantity','StrictPremium','DVanna','UserCap','DDeltaIvSsr') */
`refRMetric7Src`,
/* Replace with a FLOAT */
`orderRefRMetric1`,
/* Replace with a FLOAT */
`orderRefRMetric2`,
/* Replace with a FLOAT */
`orderRefRMetric3`,
/* Replace with a FLOAT */
`orderRefRMetric4`,
/* Replace with a FLOAT */
`orderRefRMetric5`,
/* Replace with a FLOAT */
`orderRefRMetric6`,
/* Replace with a FLOAT */
`orderRefRMetric7`,
/* Replace with a FLOAT */
`expDayWtVegaOffset`,
/* Replace with a FLOAT */
`maxExpDayWtVegaLn`,
/* Replace with a FLOAT */
`maxExpDayWtVegaSh`,
/* Replace with a FLOAT */
`maxExpDayRMetric6Ln`,
/* Replace with a FLOAT */
`maxExpDayRMetric6Sh`,
/* Replace with a FLOAT */
`symDayDDeltaOffset`,
/* Replace with a FLOAT */
`maxSymDayDDeltaLn`,
/* Replace with a FLOAT */
`maxSymDayDDeltaSh`,
/* Replace with a FLOAT */
`symDayVegaOffset`,
/* Replace with a FLOAT */
`maxSymDayVegaLn`,
/* Replace with a FLOAT */
`maxSymDayVegaSh`,
/* Replace with a FLOAT */
`symDayWtVegaOffset`,
/* Replace with a FLOAT */
`maxSymDayWtVegaLn`,
/* Replace with a FLOAT */
`maxSymDayWtVegaSh`,
/* Replace with a FLOAT */
`maxSymDayRMetric7Ln`,
/* Replace with a FLOAT */
`maxSymDayRMetric7Sh`,
/* Replace with a FLOAT */
`maxGrpDayDDeltaLn`,
/* Replace with a FLOAT */
`maxGrpDayDDeltaSh`,
/* Replace with a FLOAT */
`maxGrpDayVegaLn`,
/* Replace with a FLOAT */
`maxGrpDayVegaSh`,
/* Replace with a FLOAT */
`maxGrpDayVegaAbs`,
/* Replace with a FLOAT */
`grpDayVegaRatio`,
/* Replace with a FLOAT */
`maxAccDayWtVegaLn`,
/* Replace with a FLOAT */
`maxAccDayWtVegaSh`,
/* Replace with a FLOAT */
`accDayWtVegaOffset`,
/* Replace with a FLOAT */
`maxAccDayDDeltaLn`,
/* Replace with a FLOAT */
`maxAccDayDDeltaSh`,
/* Replace with a FLOAT */
`accDayDDeltaOffset`,
/* Replace with a INT */
`maxGrpDayContractsLn`,
/* Replace with a INT */
`maxGrpDayContractsSh`,
/* Replace with a INT */
`maxGrpDayContractsAbs`,
/* Replace with a INT */
`maxGrpDayFutContractsLn`,
/* Replace with a INT */
`maxGrpDayFutContractsSh`,
/* Replace with a INT */
`maxGrpDayFutContractsAbs`,
/* Replace with a FLOAT */
`maxGrpDayRMetric1Ln`,
/* Replace with a FLOAT */
`maxGrpDayRMetric1Sh`,
/* Replace with a FLOAT */
`maxGrpDayRMetric1Abs`,
/* Replace with a FLOAT */
`grpDayRMetric1Ratio`,
/* Replace with a FLOAT */
`maxGrpDayRMetric2Ln`,
/* Replace with a FLOAT */
`maxGrpDayRMetric2Sh`,
/* Replace with a FLOAT */
`maxGrpDayRMetric3Ln`,
/* Replace with a FLOAT */
`maxGrpDayRMetric3Sh`,
/* Replace with a FLOAT */
`maxGrpDayRMetric4Ln`,
/* Replace with a FLOAT */
`maxGrpDayRMetric4Sh`,
/* Replace with a FLOAT */
`maxGrpDayRMetric5Ln`,
/* Replace with a FLOAT */
`maxGrpDayRMetric5Sh`,
/* Replace with a FLOAT */
`symEmaCxlDDeltaLn`,
/* Replace with a FLOAT */
`symEmaCxlDDeltaSh`,
/* Replace with a FLOAT */
`symEmaCxlWtVegaLn`,
/* Replace with a FLOAT */
`symEmaCxlWtVegaSh`,
/* Replace with a VARCHAR(32) */
`traderName`,
/* Replace with a TINYTEXT */
`userData1`,
/* Replace with a TINYTEXT */
`userData2`,
/* Replace with a TINYTEXT */
`childData`,
/* Replace with a TINYINT UNSIGNED */
`checksum`,
/* Replace with a ENUM('None','Chi_1915','Lon_2215','Chi_1645','Nyc_1900','Nyc_1915','Utc_2315','Utc_2330','Cet_2315','Lon_2315') */
`tradingPeriod`,
/* Replace with a DATE */
`tradeDate`,
/* Replace with a ENUM('None','Prc','Vol','Theo') */
`altLimitType`,
/* Replace with a DOUBLE */
`altPrcLimit`,
/* Replace with a FLOAT */
`altVolLimit`,
/* Replace with a FLOAT */
`altVolOffset`,
/* Replace with a DOUBLE */
`altPrcOffset`,
/* Replace with a ENUM('Cross','Mid') */
`altLimitURef`,
/* Replace with a JSON */
`DirectedCounterPartyList`
)
VALUES(
'NONE',
'NONE',
'Example_okey_tk',
123,
1,
1,
4.56,
'CALL',
'Example_accnt',
'NONE',
'Example_groupingCode',
'Example_clientFirm',
'ADD',
'Example_altOrderId',
'Example_altAutoHedgeId',
'Example_altAccnt',
'Example_altUserName',
'dummy tiny text',
'Example_execBrkrCode',
'Example_externExDest',
'dummy tiny text',
'Example_strategy',
'Example_strategyAccnt',
'NONE',
'2022-01-01 12:34:56.000000',
5,
5,
'YES',
1234567890,
5,
1,
'NONE',
'YES',
'YES',
'NONE',
'NONE',
1,
5,
'NONE',
1.23,
1.23,
'NONE',
'NONE',
'NONE',
'NONE',
1.23,
'NONE',
1.23,
1.23,
'NONE',
1.23,
5,
'NONE',
'NONE',
'2022-01-01 12:34:56.000000',
5,
5,
'2022-01-01 12:34:56.000000',
'NONE',
'NONE',
'NONE',
'NONE',
'NONE',
'NONE',
'Example_noticeNumber',
'NONE',
'NONE',
'SIMPLE',
'SIMPLE',
'NONE',
4.56,
4.56,
1.23,
1.23,
1.23,
1.23,
1.23,
'dummy text',
'NONE',
4.56,
1.23,
'2022-01-01 12:34:56.000000',
'NONE',
'NONE',
1.23,
1.23,
1.23,
1.23,
4.56,
1.23,
1.23,
4.56,
1.23,
1.23,
'NONE',
'NONE',
'NONE',
'NONE',
'Example_hedgeFKey_tk',
123,
1,
1,
1.23,
'NONE',
'NONE',
'NONE',
'OPENING',
'NONE',
'NONE',
1.23,
'Example_riskGroupId',
'NONE',
'NONE',
'NONE',
'NONE',
'NONE',
'NONE',
'NONE',
'NONE',
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
5,
5,
5,
5,
5,
5,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
'Example_traderName',
'dummy tiny text',
'dummy tiny text',
'dummy tiny text',
1,
'NONE',
'2022-01-01',
'NONE',
4.56,
1.23,
1.23,
4.56,
'CROSS',
'{"key": "value"}'
);
DELETE TABLE EXAMPLE QUERY
DELETE FROM `SRTrade`.`MsgOptOrderGateway`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE','CRDT','GCR','SWAP','ENT','MBS','SET','LOAN') */
`okey_at` = 'NONE'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX','CRCY','CMDY','DTI','SOVN','SR_US','SR_EU','SR_AP','SR_UK','USD','EUR','GBP','CHF','JPY','CAD','AUD','HKD','KRW','INR','SGD','TWD','CNY','CNH','BRL','MXN','ZAR','SEK','NOK','DKK','PLN','ILS','TRY','NZD','THB','MYR','IDR','PHP','CZK','HUF','SAR','AED','CLP','COP') */
`okey_ts` = 'NONE'
AND
/* Replace with a VARCHAR(12) */
`okey_tk` = 'Example_okey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`okey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`okey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`okey_dy` = 1
AND
/* Replace with a DOUBLE */
`okey_xx` = 4.56
AND
/* Replace with a ENUM('Call','Put','Pair') */
`okey_cp` = 'CALL'
AND
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a ENUM('None','Buy','Sell') */
`orderSide` = 'NONE'
AND
/* Replace with a CHAR(19) */
`groupingCode` = 'Example_groupingCode'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';
Doc Columns Query
SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='OptOrderGateway' ORDER BY ordinal_position ASC;